﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace GISSystem.Class
{
    /// <summary>
    /// 这个类中只使用静态成员，用于存储整个系统的一些公共变量
    /// </summary>
    public class Configuration
    {
        private static string mxdPath;  //mxd文件路径
        private static string configPath;   //配置文件路径

        /// <summary>
        /// mxd文件的路径
        /// </summary>
        public static string MxdPath
        {
            get { return mxdPath; }
            set { mxdPath = value; }
        }

        /// <summary>
        /// 设置或获取配置文件路径
        /// </summary>
        public static string ConfigPath
        {
            get { return configPath; }
            set { configPath = value; }
        }

        private static Point overviewFormLocation; //预览窗口位置
        private static int overviewFormWidth; //预览窗口宽度
        private static int overviewFormHeight;  //预览窗口高度
        private static bool overviewFormShow;  //是否显示预览窗口

        /// <summary>
        /// 设置或获取是否显示全局地图窗口
        /// </summary>
        public static bool ShowOverviewForm
        {
            get { return overviewFormShow; }
            set { overviewFormShow = value; }
        }

        /// <summary>
        /// 获取或设置全局地图窗口位置
        /// </summary>
        public static Point OverviewFormLocation
        {
            get { return overviewFormLocation; }
            set { overviewFormLocation = value; }
        }

        /// <summary>
        /// 获取或设置全局地图窗口宽度
        /// </summary>
        public static int OverviewFormWidth
        {
            get { return overviewFormWidth; }
            set { overviewFormWidth = value; }
        }

        /// <summary>
        /// 获取或设置全局地图窗口高度
        /// </summary>
        public static int OverviewFormHeight
        {
            get { return overviewFormHeight; }
            set { overviewFormHeight = value; }
        }
    }
}
